from django.urls import path

from account import views
from account.views import user_list_slice, user_list_paginator, user_login, user_edit, user_reg, user_change

urlpatterns = [
    path('user/info/', views.user_info, name='user_info'),
    path('user/list/slice/', views.user_list_slice, name='user_list_slice'),
    path('user/list/paginator/', views.user_list_paginator, name='user_list_paginator'),
    path('user/list/class/', views.UserListView.as_view(), name='user_list_class'),
    path('user/register/', views.user_register, name='user_register'),
    path('user/signup/trans/', views.user_signup_trans, name='user_signup_trans'),
    path('user/signup/with/', views.user_signup_trans_with, name='user_signup_trans_with'),
    path('user/signup/hand/', views.user_signup_trans_hand, name='user_signup_trans_hand'),
    #用户登录表单
    path('user/login/', user_login, name='user_login'),
    #用户信息维护
    path('user/edit/', user_edit, name='user_edit'),  # 有问题错误输入生日
    #用户注册
    path('user/reg/', user_reg, name='user_reg'),
    # 用户信息维护-ORM表单/自定义界面显示/
    path('user/change/', user_change, name='user_change'),
    # 表单文件上传/通过表单实现文件上传
    path('upload/form/', views.upload_user_form, name='upload_user_form'),
    # 表单文件上传/结合ORM实现文件上传
    path('upload/form2/', views.upload_user_form2, name='upload_user_form2'),


]
